<?php echo $main_menu; ?>
<div id="home">
	<div class="span4">
		<a href="<?php echo base_url(); ?>"><img src="<?php echo base_url().'assets/img/muziklaban.png';?>" /></a>
		<?php if(!$logged_in): ?>
			<a href="<?php echo base_url(); ?>login"><p class="font-feas step-text font-yellow">LOGIN</p>
			<a href="<?php echo base_url(); ?>users/signup"><p class="font-feas step-text font-yellow">REGISTER</p>
		<?php else: ?>
			<a href="<?php echo base_url().'profile/view_profile/'.$this->session->userdata('intID'); ?>"><p class="font-feas step-text font-yellow">Hello <?php echo $this->session->userdata('strName'); ?></p>
		<?php endif; ?>
	</div>
	<div id="updates" class="span6">
		<ul class="item">
		<?php foreach($updates as $update): 
			$date = strtotime($update['dteDate']);
			$date = date('M d,Y',$date);
		?>
			<li>
				<h4><a href="<?php echo base_url().'homepage/updates/'.$update['intID']; ?>"><?php echo $update['strTitle']; ?></a></h4>
				<p>&ldquo;<?php echo ($update['strSecondary']!='')?$update['strSecondary']:word_limiter(strip_tags($update['ct-strContent']),20); ?>&rdquo;</p>
				<p class="pull-right content"><a href="<?php echo base_url().'homepage/updates/'.$update['intID']; ?>">Read More &raquo;</a></p>
				<div class="clear"></div>
				<p class="pull-right content"><?php echo $date; ?></p>
				
				<div class="clear"></div>
			</li>
		<?php endforeach; ?>
		</ul>
	</div>
	<div class="clear"></div>
</div>